package com.pd.rpcbiz;

import com.pd.rpc.api.DemoServices;
import com.pd.rpc.domain.Demo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Author: dong peng
 * Date: 2018/1/15
 * Time: 16:33
 */


public class DemoServicesImpl implements DemoServices {

    Logger log = LoggerFactory.getLogger(DemoServicesImpl.class);

    @Override
    public String sayHello() {
        System.out.println("Hello ,It's dubbo demo");

       return "Hello ,It's dubbo demo";
    }


    public Demo returnObject() {

        Demo demo = new Demo();
        demo.setName("demo Object");
        return demo;
    }
}
